<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <button @click.left.exact="show('left')">only mouse left click</button><br>
    <button @click.right.exact="show('right')">only mouse right click</button><br>
    <button @click.middle.exact="show('middle')">only middle click</button><br>

</div>
<script>
    const vueOpt = {
        data(){
            return {

            }
        },
        methods: {
            show(msg){
                alert(msg)
            }
        }
    }

    Vue.createApp(vueOpt).mount('#app')
</script>
</body>
</html>
